package com.campus.mapper;

import com.campus.entity.TManagerClass;
import com.campus.entity.TManagerStudent;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Repository
public interface ClassMapper {

    @Options(useGeneratedKeys = true, keyProperty = "tManagerClass.id")
    int createClass(TManagerClass tManagerClass);

    int updateClass(Integer id, String name, String classDesc, Integer teacherId, Integer activityId);

    @Options(useGeneratedKeys = true, keyProperty = "tManagerStudent.id")
    int createStudent(TManagerStudent tManagerStudent);
}
